package com.gec.model;

import java.sql.ResultSet;
import java.sql.SQLException;

public class KaoQing {
	private String staffId;
	private String nickName;
	private String position;
	private String qk;
	private String chidao;
	private String zt ;
	private String yingchuqing ;
	private String shichuqing ;
	private String qryDate ;
	@Override
	public String toString() {
		
		String f = String.format("|%8s|%6s|%6s|%9s|%7s|%6s|%7s|%8s|%7s|",
				this.staffId,this.nickName,this.position,"2019-07",
				this.qk,this.chidao,this.zt,this.yingchuqing,this.shichuqing);
		
		
		return f;
	}
	public KaoQing(ResultSet rs) throws SQLException {
		super();
		this.staffId = rs.getString("staffId");
		this.nickName = rs.getString("nickName");
		this.position = rs.getString("position");
		this.qk = rs.getString("qk");
		this.chidao = rs.getString("chidao");
		this.zt = rs.getString("zt");
		this.yingchuqing = rs.getString("yingchuqing");
		this.shichuqing = rs.getString("shichuqing");
	}
	public String getQryDate() {
		return qryDate;
	}
	public void setQryDate(String qryDate) {
		this.qryDate = "2019-07";
	}
	public String getStaffId() {
		return staffId;
	}
	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getQk() {
		return qk;
	}
	public void setQk(String qk) {
		this.qk = qk;
	}
	public String getChidao() {
		return chidao;
	}
	public void setChidao(String chidao) {
		this.chidao = chidao;
	}
	public String getZt() {
		return zt;
	}
	public void setZt(String zt) {
		this.zt = zt;
	}
	public String getYingchuqing() {
		return yingchuqing;
	}
	public void setYingchuqing(String yingchuqing) {
		this.yingchuqing = yingchuqing;
	}
	public String getShichuqing() {
		return shichuqing;
	}
	public void setShichuqing(String shichuqing) {
		this.shichuqing = shichuqing;
	}


//	public KaoQing(ResultSet rs) throws SQLException {
//		super();
//		this.workingDate = rs.getString("workingDate");
//		this.staffId = rs.getString("staffId");
//		this.nickName = rs.getString("nickName");
//		this.sbdk = rs.getString("sbdk");
//		this.sstatus = rs.getString("sstatus");
//		this.xbdk = rs.getString("xbdk");
//		this.xstatus = rs.getString("xstatus");
//		
//	}
//	
	
}
